package com.spboot.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jntoo.db.DB;
import java.io.Serializable;
import java.util.*;

@TableName("goupiao")
public class Goupiao implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer paipianid;

    private Integer dianyingxinxiid;

    private String dianyingbianhao;

    private String dianyingmingcheng;

    private Integer fenlei;

    private String dianyingleixing;

    private Double yingpiaojiage;

    private String bofangyingyuan;

    private Integer bofangting;

    private Integer piaoshu;

    private String xuanzuo;

    private Integer goumaipiaoshu;

    private Double xiaoji;

    private String zhuangtai;

    private String goumairen;
    private String iszf;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getTuipiaoCount() {
        return DB.name("tuipiao").where("goupiaoid", id).count();
    }

    public Integer getPaipianid() {
        return paipianid;
    }

    public void setPaipianid(Integer paipianid) {
        this.paipianid = paipianid == null ? 0 : paipianid;
    }

    public Integer getDianyingxinxiid() {
        return dianyingxinxiid;
    }

    public void setDianyingxinxiid(Integer dianyingxinxiid) {
        this.dianyingxinxiid = dianyingxinxiid == null ? 0 : dianyingxinxiid;
    }

    public String getDianyingbianhao() {
        return dianyingbianhao;
    }

    public void setDianyingbianhao(String dianyingbianhao) {
        this.dianyingbianhao = dianyingbianhao == null ? "" : dianyingbianhao.trim();
    }

    public String getDianyingmingcheng() {
        return dianyingmingcheng;
    }

    public void setDianyingmingcheng(String dianyingmingcheng) {
        this.dianyingmingcheng = dianyingmingcheng == null ? "" : dianyingmingcheng.trim();
    }

    public Integer getFenlei() {
        return fenlei;
    }

    public void setFenlei(Integer fenlei) {
        this.fenlei = fenlei == null ? 0 : fenlei;
    }

    public String getDianyingleixing() {
        return dianyingleixing;
    }

    public void setDianyingleixing(String dianyingleixing) {
        this.dianyingleixing = dianyingleixing == null ? "" : dianyingleixing.trim();
    }

    public Double getYingpiaojiage() {
        return yingpiaojiage;
    }

    public void setYingpiaojiage(Double yingpiaojiage) {
        this.yingpiaojiage = yingpiaojiage == null ? 0.0f : yingpiaojiage;
    }

    public String getBofangyingyuan() {
        return bofangyingyuan;
    }

    public void setBofangyingyuan(String bofangyingyuan) {
        this.bofangyingyuan = bofangyingyuan == null ? "" : bofangyingyuan.trim();
    }

    public Integer getBofangting() {
        return bofangting;
    }

    public void setBofangting(Integer bofangting) {
        this.bofangting = bofangting == null ? 0 : bofangting;
    }

    public Integer getPiaoshu() {
        return piaoshu;
    }

    public void setPiaoshu(Integer piaoshu) {
        this.piaoshu = piaoshu == null ? 0 : piaoshu;
    }

    public String getXuanzuo() {
        return xuanzuo;
    }

    public void setXuanzuo(String xuanzuo) {
        this.xuanzuo = xuanzuo == null ? "" : xuanzuo.trim();
    }

    public Integer getGoumaipiaoshu() {
        return goumaipiaoshu;
    }

    public void setGoumaipiaoshu(Integer goumaipiaoshu) {
        this.goumaipiaoshu = goumaipiaoshu == null ? 0 : goumaipiaoshu;
    }

    public Double getXiaoji() {
        return xiaoji;
    }

    public void setXiaoji(Double xiaoji) {
        this.xiaoji = xiaoji == null ? 0.0f : xiaoji;
    }

    public String getZhuangtai() {
        return zhuangtai;
    }

    public void setZhuangtai(String zhuangtai) {
        this.zhuangtai = zhuangtai == null ? "" : zhuangtai.trim();
    }

    public String getGoumairen() {
        return goumairen;
    }

    public void setGoumairen(String goumairen) {
        this.goumairen = goumairen == null ? "" : goumairen.trim();
    }

    public String getIszf() {
        return iszf;
    }

    public void setIszf(String iszf) {
        this.iszf = iszf == null ? "" : iszf.trim();
    }
}
